<?php

class Damages_Methods_Data_EmailTemplate {

  /**
   *
   * @var int 
   */
  public $id;

  /**
   *
   * @var string 
   */
  public $name;

  /**
   *
   * @var string 
   */
  public $template;

  /**
   *
   * @var string 
   */
  public $language;

  /**
   *
   * @var string 
   */
  public $code;

  /**
   *
   * @var string 
   */
  public $created;

  /**
   *
   * @var string 
   */
  public $modified;

  public function __construct(DamagesEmailTemplates $template) {
    $this->id = $template->getId();
    $this->name = $template->getName();
    $this->template = $template->getTemplate();
    $this->language = $template->getLanguage();
    $this->code = $template->getCode();
    $this->created = $template->getCreated();
    $this->modified = $template->getModified();
  }

}